From: Colin Walters Date: Tue, 15 Sep 2009 21:40:26 +0000 (-0400) Subject: [runDialog] Add 'debugexit' command X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10915 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=98bd590a5d;p=gnome-shell.git [runDialog] Add 'debugexit' command There are few uses for being able to exit the shell directly; my current one is that the gtype debug infrastructure is implemented as an atexit() handler. --- diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 0f97cb250..53315b45d 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -5,6 +5,7 @@ const Clutter = imports.gi.Clutter; const GLib = imports.gi.GLib; const Lang = imports.lang; const Mainloop = imports.mainloop; +const Meta = imports.gi.Meta; const Shell = imports.gi.Shell; const Signals = imports.signals; const Gettext = imports.gettext.domain('gnome-shell'); @@ -53,6 +54,10 @@ RunDialog.prototype = { // Developer brain backwards compatibility 'restart': Lang.bind(this, function() { global.reexec_self(); + }), + + 'debugexit': Lang.bind(this, function() { + Meta.exit(Meta.ExitCode.ERROR); }) };